package com.zhou.dto.integral;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;


import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Description : 积分新增
 * @Author : zyy
 * @Date: 2024/6/21  15:30
 */
@Data
@Schema(name = "积分新增", description = "积分新增入参")
public class IntegralDTO {

    @Schema(name = "用户id", type = "string")
    @NotEmpty(message = "用户id不能为空")
    private String userInfoId;

    @Schema(name = "积分数", type = "bigDecimal")
    @NotNull(message = "积分数不能为空")
    private BigDecimal integralNumber;

    @Schema(name = "积分操作明细", type = "String")
    @NotEmpty(message = "积分操作明细不能为空")
    private String DetailContent;

}
